<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 14-5-12
 * Time: 下午6:54
 */
include "common.php";
class Help extends Common{
    function __construct(){
        parent::__construct();
        $this->load->database ();
    }

    function about()
    {
        $data['data'] = $this->Marticle->getArticleByColumnId(8);
        $data['title'] = '关于我们';
        $data['helpMethod'] = 'about';
        $this->load->view ( 'about', $data);
    }

    function news()
    {
        $data['data'] = $this->Marticle->getArticleByColumnId(9);
        $data['title'] = '新闻动态';
        $data['helpMethod'] = 'news';
        $this->load->view ( 'about', $data);
    }

    function contact()
    {
        $data['data'] = $this->Marticle->getArticleByColumnId(10);
        $data['title'] = '联络我们';
        $data['helpMethod'] = 'contact';
        $this->load->view ( 'about', $data);
    }

    function join()
    {
        $data['data'] = $this->Marticle->getArticleByColumnId(11);
        $data['title'] = '加入我们';
        $data['helpMethod'] = 'join';
        $this->load->view ( 'about', $data);
    }

    function info()
    {
        $data['data'] = $this->Marticle->getArticleByColumnId(12);
        $data['title'] = '团队简介';
        $data['helpMethod'] = 'info';
        $this->load->view ( 'about', $data);
    }

    function madouhelp()
    {
        $data['data'] = $this->Marticle->getArticleByColumnId(13);
        $data['title'] = '麻豆帮助';
        $data['helpMethod'] = 'help';
        $this->load->view ( 'about', $data);
    }

    function clause()
    {
        $data['data'] = $this->Marticle->getArticleByColumnId(14);
        $data['title'] = '服务条款';
        $data['helpMethod'] = 'clause';
        $this->load->view ( 'about', $data);
    }
}
